class Valleyers::Show::Albums::Show::Photos::Show::EntriesController < ApplicationController
  def index
    @valleyer = Valleyer.find params[:valleyer_id]
    @album = Album.find params[:album_id]
    #初始化相册评论
    @post = Post.new :album_id => params[:album_id],
      :created_by_valleyer_id => current_valleyer_id
    #记录访问人
    @browse_record = BrowseRecord.create(
      :album_id => @album.id,
      :browser_id => current_valleyer_id
    )
  end

  def authorize

  end
end
